﻿@model HeaderLinksModel
@using Nop.Web.Models.Common;
<div class="header-links">
    <div class="header-logistics header-link button-white-grad"><a href="@Url.RouteUrl("OrderLogistics")"><img src="~/Content/Images/header-logistics.png" /><div class="pending-shipping-order @if (Model.HasPendingShippingOrder){<text>show</text>}">!</div></a></div>
    <div class="header-cart header-link button-white-grad"><a href="@Url.RouteUrl("ShoppingCart")"><img src="~/Content/Images/header-cart.png" title="@T("ShoppingCart")" alt="@T("ShoppingCart")" /><div class="cart-quantity"></div><div class="cart-pending-order"></div></a><div id="cart-message"></div></div>
    <div class="header-user header-link button-white-grad"><a href="@Url.RouteUrl("CustomerInfo")"><img src="~/Content/Images/header-account.png" /><span class="header-link-name"> @Model.CustomerEmailUsername</span></a></div>

    <div id="user-links" class="user-links">
        <div class="user-links-wrapper">
            <div class="user-links-content">
                <ul>
                    <li><a href="@Url.RouteUrl("CustomerTracking")">Track a Package</a></li>
                    @if (Model.IsAuthenticated)
                    {
                        <li><a href="@Url.RouteUrl("Logout")">Logout</a></li>
                    }
                    else
                    {
                        <li><a href="@Url.RouteUrl("Login")">Login</a></li>
                    }
                </ul>
            </div>

        </div>
    </div>
    
    @if (Model.ShoppingCartEnabled)
    {
        <div id="flyout-cart" class="flyout-cart">
            @Html.Action("FlyoutShoppingCart", "ShoppingCart", new { area = "Commerce" })
        </div>
    }

</div>

@*<ul class="nav navbar-nav header-links">
        <li class="header-link header-link-category">
            <div class="header-link-top">
                <i class="fa fa-tags"></i><br><span class="header-link-name">Category</span>
            </div>
        </li>
        <li class="header-link header-link-search">
            <div class="header-link-top">
                <i class="fa fa-search"></i><br><span class="header-link-name">Search</span>
            </div>
        </li>

        <li class="dropdown header-link header-link-cart">
            <a href="@Url.RouteUrl("ShoppingCart")" class="header-link-top">
                <i class="fa fa-shopping-cart"></i><br /><span class="header-link-name">Cart</span>
            </a>
            @if (Model.ShoppingCartEnabled)
            {
                <div class="flyout-shopping-cart">
                    @Html.Action("FlyoutShoppingCart", "ShoppingCart", new { area = "Commerce" })
                </div>
            }
            <div id="cart-message"></div>
        </li>


        <li class="dropdown header-link header-link-shipping">
            <a href="@Url.RouteUrl("OrderLogistics")" rel="nofollow" class="header-link-top"><i class="fa fa-truck"></i><br /><span class="header-link-name">Shipping</span></a>
            <span class="shipping-pending-order @if (Model.HasPendingShippingOrder){<text>has-pending</text>}"><i class="fa fa-pencil"></i></span>
            <div class="dropdown-wrapper">
                <div class="dropdown-item">
                    <ul>
                        <li class="orderlink"><a href="@Url.RouteUrl("OrderLogistics")" rel="nofollow"><i class="fa fa-clipboard"></i> @T("Menu.PlaceOrder")</a></li>
                        <li class="tracklink"><a href="@Url.Action("Tracking", "Customer", new { area = "" })"><i class="fa fa-crosshairs"></i>Track your Package</a></li>
                        <li class="aboutlink"><a href="@Url.RouteUrl("Topic", new { SystemName = "AboutExpress" })"><i class="fa fa-archive"></i> @T("Menu.AboutSpotsHUBExpress")</a></li>
                        <li class="maplink"><a href="@Url.RouteUrl("Topic", new { SystemName = "ShippingRegulation" })"><i class="fa fa-globe"></i> @T("Menu.CoverageMap")</a></li>
                        <li class="offerlink"><a href="@Url.RouteUrl("Topic", new { SystemName = "ShippingRegulation" })#regulation"><i class="fa fa-bar-chart"></i> @T("Menu.ShippingRegulation")</a></li>
                        <li class="regulationlink"><a href="@Url.Action("CalculateShippingRate", "Rate", new { area = "logistics" })"><i class="fa fa-line-chart"></i> @T("Menu.RatesEstimation")</a></li>
                        <li class="timelink"><a href="@Url.RouteUrl("OperatingHours")#deliverytime"><i class="fa fa-clock-o"></i> @T("Menu.HoursOfOperation")</a></li>
                        <li class="faqlink"><a href="@Url.RouteUrl("Topic", new { SystemName = "QuestionsAndAnswers" })"><i class="fa fa-question"></i> @T("Menu.QA")</a></li>
                    </ul>
                </div>
            </div>
        </li>
        <li class="dropdown header-link header-link-user">
            @Html.Action("UserLinks", "Common", new { area = "Commerce" })
        </li>
    </ul>*@